<template>
  <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
    <el-tab-pane label="取件作业" name="pickup"><taskpickup></taskpickup></el-tab-pane>
    <el-tab-pane label="派件作业" name="dispatch"><taskdispatch></taskdispatch></el-tab-pane>
    <el-tab-pane label="已取消" name="canel"><taskcanel></taskcanel></el-tab-pane>
  </el-tabs>
</template>

<script>

  import Taskdispatch from './taskdispatch'
  import Taskpickup from './taskpickup'
  import Taskcanel from './taskcanel'

  export default {
    data () {
      return {
        activeName: 'pickup'
      }
    },
    components: {Taskcanel, Taskdispatch, Taskpickup},
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }
</script>
